<%
    /**
     * 横表样例
     * edited by amon 2005-8-16
     */
%>
<%@ include file ="/common/ini.jsp"%>
<%@ include file ="/common/_log4j.jsp"%>
<%@ include file ="/common/List/_js.jsp"%>
<%@ include file ="/common/params/_putParamsInSession.jsp"%>
<script>
    // 新增
    function add()
    {
        parent.location.href = "<%= request.getContextPath()%>/moduleinfor/sysframe/user/addUser.jsp";
    }
    // 修改
    function update()
    {
        var id = getCheckedId();
        if(id == null)
        {
            alert("请选择待修改项");
        }
        else
        {
            parent.location.href = "<%= request.getContextPath()%>/moduleinfor/sysframe/user/updateUser.jsp?id=" + id;
        }
    }
    // 删除
    function del()
    {
        detailForm.serviceURL.value = "sysframe.user.DeleteUserService";
        if(hasSelected("ids"))
        {
            detailForm.method = "post";
            detailForm.submit();
        }
        else
        {
            alert("请选中待操作项");
        }
    }
	// 查询
    function query()
    {
        window.location.href = "<%= request.getContextPath()%>/moduleinfor/sysframe/user/queryUser.jsp";
    }
    // 重置密码
    function resetPW()
    {
        detailForm.serviceURL.value = "sysframe.user.ResetPassWordService";
        if(hasSelected("ids"))
        {
            detailForm.method = "post";
            detailForm.submit();
        }
        else
        {
            alert("请选中待操作项");
        }
    }
    // 加解锁
    function lockUnlock()
    {
        detailForm.serviceURL.value = "sysframe.user.LockOrUnLockUserService";
        if(hasSelected("ids"))
        {
            detailForm.method = "post";
            detailForm.submit();
        }
        else
        {
            alert("请选中待操作项");
        }
    }
</script>
<%@ include file ="/common/List/willstarStyle/fullStyleList.jsp"%>
<script>
    // 选用框架提供的pri解决方案，必须
    changePriForm.serviceURL.value="sysframe.user.ChangeUserPriService";
</script>
<%@ include file ="/common/List/bottom.jsp"%>
<!--
    此处的js将不会执行
-->
